/**
 * @param {number[][]} grid
 * @return {number}
 */
var countPaths = function(grid) {

};
let grid = [[1,1],[3,4]];
console.log(countPaths(grid));
grid = [[1],[2]];
console.log(countPaths(grid));
